<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=7" />
<title>{if isset($SEO['title']) && !empty($SEO['title'])}{$SEO['title']}{/if}{$SEO['site_title']}</title>
<meta name="Robots" content="all" />
<meta name="Googlebot" content="all" />
<meta name="Author" content="内蒙古呼和浩特市第二中学网校" />
<meta name="Copyright" content="内蒙古呼和浩特市第二中学版权所有" />
<meta name="keywords" content="{$SEO['keyword']}">
<meta name="description" content="{$SEO['description']}">
<link href="{CSS_PATH}public.css" rel="stylesheet" type="text/css" />
<link href="{CSS_PATH}download.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="{JS_PATH}jquery.min.js"></script>
<script type="text/javascript" src="{JS_PATH}jquery.sGallery.js"></script>
<script type="text/javascript" src="{JS_PATH}search_common.js"></script>
</head>
<body>
{template "content","header_common"}
<div id="page">

<div id="contentbox">

<div id="boardbox">
	<div class="searchbar">
		<form action="index.php?m=content&c=search&catid=14" method="get" name="myform" target="_blank"><table class="formtable" cellspacing="0" cellpadding="0" border="0" >
<tr>
<td>{form::select_category('category_content',14,'name="info[catid]"',L('please_select_category'),2,0,1)}</td>
<td><select name="orderby" id="orderby"  size="1">
				<option value="a.id DESC" >时间降序</option>
				<option value="a.id ASC" >时间升序</option>
				</select>
</td>
<td class="title">标题</td>
<td><input type="text" class="keyword" style="width:230px;" value="" id="title" name="info[title]"></td>
<td class="title">关键词</td>
<td><input class="keyword" style="width:230px;" type="text" value="" id="keywords" name="info[keywords]"></td>
<td><input type="submit" class="submit" value="搜索">
</td>
</tr>
</table>
								<input type="hidden" name="m" value="content"> 
				<input type="hidden" name="c" value="search"> 
				<input type="hidden" name="a" value="init"> 
				<input type="hidden" name="catid" value="14"> 
				<input type="hidden" name="dosubmit" value="1">
				</form>
综合搜索</div>
	
	<div class="box">
		<div class="leftside">
			<span class="commend">
				<h3><span class="sp_r"></span><span class="sp_l"></span>
					<span class="tab">
						<a href="index.php?m=content&c=index&a=lists&catid=106" class="fcous" id="tt_106" onmouseover="toggle_display(106,'107')">初中</a> | 
						<a href="index.php?m=content&c=index&a=lists&catid=107" id="tt_107" onmouseover="toggle_display(107,'106')">高中</a>
					</span>
					<span class="title">公开课视频</span>
				</h3>
				<span class="outerbox" id="tab_106">
				{pc:content action="lists" catid="106" thumb="1" num="4" siteid="$siteid" order="id DESC"}
				{php $dcount = count($data);}
				{loop $data $r}
					{if $n<3}
					{if $n==1}<span class="imgbox">{/if}
					<span>
						<a href="{$r[url]}" title="{$r[title]}" target="_blank">
							<img src="{thumb($r[thumb],130,106)}" alt="{$r[title]}" />
						</a>
						<p>{str_cut($r[title],60)}</p>
					</span>
					{if $dcount>1 && $n>1}</span>{elseif $dcount==1 && $n==1}</span>{/if}
					{else}
					{if $n==3}<ul>{/if}
					<li><a href="{$r[url]}" title="{$r[title]}" target="_blank">{str_cut($r[title],60)}</a></li>
					{if $n==$dcount}</ul>{/if}
					{/if}
				{/loop}
				{/pc}
				</span>
				
				<span class="outerbox" id="tab_107" style="display:none;">
				{pc:content action="lists" catid="107" thumb="1" num="4" siteid="$siteid" order="id DESC"}
				{php $dcount = count($data);}
				{loop $data $r}
					{if $n<3}
					{if $n==1}<span class="imgbox">{/if}
					<span>
						<a href="{$r[url]}" title="{$r[title]}" target="_blank">
							<img src="{thumb($r[thumb],130,106)}" alt="{$r[title]}" />
						</a>
						<p>{str_cut($r[title],60)}</p>
					</span>
					{if $dcount>1 && $n>1}</span>{elseif $dcount==1 && $n==1}</span>{/if}
					{else}
					{if $n==3}<ul>{/if}
					<li><a href="{$r[url]}" title="{$r[title]}" target="_blank">{str_cut($r[title],60)}</a></li>
					{if $n==$dcount}</ul>{/if}
					{/if}
				{/loop}
				{/pc}
				</span>
			</span>
			
			<span class="enumerate">
				<h3><span class="sp_r"></span><span class="sp_l"></span>
					<a href="index.php?m=content&c=index&a=lists&catid=25">更多</a>
					<span class="title">历届高考试题</span>
				</h3>
				<span class="listbox">
					<dl>
						{pc:content action="lists" catid="25" num="12" siteid="$siteid" order="id DESC"}
						{loop $data $r}
						<dd><a href="{$r[url]}" title="{$r[title]}" target="_blank">{str_cut($r[title],60)}</a></dd>
						{/loop}
						{/pc}
					</dl>
				</span>
			</span>
		</div>
		
		<div class="middle">
			<span class="treasure">
				<h3><span class="sp_r"></span><span class="sp_l"></span><span class="title">题库珍藏试题</span></h3>
				<span class="outerbox">
				<span>
				{pc:content action="category" catid="26" num="16" siteid="$siteid" order="listorder ASC"}
				{php $cdata = $data;}
				{php $cn=1;}
				{loop $cdata $r}
				<dl>
					<dt><a href="{$r[url]}" title="{$r[catname]}">更多</a>{$r[catname]}</dt>
					{pc:content action="lists" catid="$r[catid]" num="5" siteid="$siteid" order="id DESC"}
					{loop $data $v}
					<dd><a href="{$v[url]}" title="{$v[title]}" target="_blank">{str_cut($v[title],40)}</a></dd>
					{/loop}
					{/pc}
				</dl>
				{if $cn%2==0}</span><span>{/if}
				{php $cn++;}
				{/loop}
				{/pc}</span>

</span>
				<span class="clear">&nbsp;</span>
			</span>
			
			<span class="cruces">
				<h3><span class="sp_r"></span><span class="sp_l"></span><span class="tab">
					{pc:content action="category" catid="27" num="2" siteid="$siteid" order="listorder ASC"}
					{loop $data $r}
						<a {if $n==1}class="fcous"{/if} href="{$r[url]}" title="{$r[catname]}" id="tt_{$r[catid]}" onmouseover="toggle_display({$r[catid]})">{$r[catname]}</a>
						{if $n<2} | {/if} 
					{/loop}
					{/pc}
				</span><span class="title">知识要点题库</span>
				</h3>
				{pc:content action="category" catid="27" num="2" siteid="$siteid" order="listorder ASC"}
				{php $cdata=$data;$cn=1;}
				{loop $cdata $r}
					<span id="tab_{$r[catid]}" class="innerbox" {if $cn==2}style="display:none;"{/if}>
						<img src="{IMG_PATH}2zwx/second/download_img.jpg">
					{pc:content action="lists" catid="$r[catid]" num="5" siteid="$siteid" order="id DESC"}
					<ul>
					{loop $data $v}
					<li><a href="{$v[url]}" title="{$v[title]}" target="_blank">{str_cut($v[title],60)}</a></li>
					{/loop}
					</ul>
					{/pc}<span class="clear"></span>

					</span>					{php $cn++;}
				{/loop}
				{/pc}

			</span>	
</div>
		
		<div class="rightside">
			<span class="choiceness">
				<h3><span class="sp_r"></span><span class="sp_l"></span><span class="tab">
					{pc:content action="category" catid="28" num="3" siteid="$siteid" order="listorder ASC"}
					{loop $data $r}
						<a {if $n==1}class="fcous"{/if} href="{$r[url]}" title="{$r[catname]}" id="tt_{$r[catid]}" onmouseover="toggle_display({$r[catid]})">{$r[catname]}</a>
						{if $n<3} | {/if} 
					{/loop}
					{/pc}
					</span>
					<span class="title">精选视频</span>
				z</h3>
				{pc:content action="category" catid="28" num="3" siteid="$siteid" order="listorder ASC"}
				{php $cdata=$data;$cn=1;}
				{loop $cdata $r}
					<span id="tab_{$r[catid]}" class="junior" {if $cn>1}style="display:none;"{/if}>
					
					{pc:content action="lists" catid="$r[catid]" thumb="1" num="4" siteid="$siteid" order="id DESC"}
					<span class="imgbox">
					{loop $data $v}
						<span>
							<a href="{$v[url]}" title="{$v[title]}" target="_blank">
							<img alt="{$v[title]}" src="{thumb($v[thumb],100,80)}" />
							</a>
							<p>{str_cut($v[title],60)}</p>
						</span>
					{if $n%2==0}</span><span class="imgbox">{/if}
					{/loop}
					</span>
					{/pc}
					
					{pc:content action="lists" catid="$r[catid]" num="6" siteid="$siteid" order="id DESC"}
					<ul>
					{loop $data $v}
					<li><a href="{$v[url]}" title="{$v[title]}" target="_blank">{str_cut($v[title],60)}</a></li>
					{/loop}
					</ul>
					{/pc}
					</span>
					{php $cn++;}
				{/loop}
				{/pc}
			</span>
			
			<span class="simulate">
				<h3><span class="sp_r"></span><span class="sp_l"></span><span class="tab">
					{pc:content action="category" catid="119" num="2" siteid="$siteid" order="listorder ASC"}
					{loop $data $r}
						<a {if $n==1}class="fcous"{/if} href="{$r[url]}" title="{$r[catname]}" id="tt_{$r[catid]}" onmouseover="toggle_display({$r[catid]})">{$r[catname]}</a>
						{if $n<2} | {/if} 
					{/loop}
					{/pc}
					</span><span class="title">模拟组卷</span>
				</h3>
				{pc:content action="category" catid="119" num="2" siteid="$siteid" order="listorder ASC"}
				{php $cdata=$data;$cn=1;}
				{loop $cdata $r}
					<span id="tab_{$r[catid]}" class="junior" {if $cn==2}style="display:none;"{/if}>
					{pc:content action="lists" catid="$r[catid]" num="7" siteid="$siteid" order="id DESC"}
					<ul>
					{loop $data $v}
					<li><a href="{$v[url]}" title="{$v[title]}" target="_blank">{str_cut($v[title],60)}</a></li>
					{/loop}
					</ul>
					{/pc}
					</span>
					{php $cn++;}
				{/loop}
				{/pc}
			</span>
		</div>
	</div>
	<div class="clear">&nbsp;</div>
</div><!-- css id boardbox end -->
<script language="JavaScript">
<!--
	function toggle_display(showid, hideids)
	{
		//隐藏元素
		if (hideids=='undefined'){
			var hide_arr = hideids.split(',');
			var hide_len = hide_arr.length;
			for(i=0;i<hide_len;i++)
			{
				$('#tt_'+hide_arr[i]).attr('class', '');
				$('#tab_'+hide_arr[i]).css('display', 'none');
			}
		} else {
			//取得同级元素
			var siblings =$('#tt_' + showid).siblings();
			var siblings_len = siblings.length;
			for(i=0;i<siblings_len;i++)
			{
				var hide_id = siblings.eq(i).attr('id');
				var id_index = hide_id.lastIndexOf('_') + 1;
				var id_num = hide_id.substring(id_index);
				$('#tt_'+id_num).attr('class', '');
				$('#tab_'+id_num).css('display', 'none');
			}
		}
		//显示元素
		$('#tt_'+showid).attr('class', 'fcous');
		$('#tab_'+showid).css('display', 'block');
	}
-->
</script>
{template "content","footer_cat"}
</div>
